<?php
require_once(__DIR__.'/../core/globalFunctions.php');
require_once(__DIR__.'/../core/eventSubscriber.php');

// This is the metadata module. It provides the site metadata in the head of the page 
class Meta extends EventSubscriber {
	function __construct ($name) {
		// Define events that the module is interested in.
		$this->subscriptions = array("head");
		
		parent::__construct($name);
	}

	function handleEventCallback ($event) {
		// Define responses to event callbacks.
		switch ($event) {
		
			case "head":
				echo "<title>Testing</title>\n<meta charset='UTF-8'>";
				break;
				
				
		}
	}
}
?>